<ion-view hide-back-button="true" title="确认订单" cache-view="false">
	<ion-nav-buttons side="left">
		<button class="button button-clear" ng-click="goBack()">
			<i class="icon ion-chevron-left"></i>
		</button>
	</ion-nav-buttons>

	<ion-content>
		<div class="divider"></div>

		<div class="list order-list" style="font-size: 11px">
			<div class="item item-icon-left item-icon-right" href="#" style="height: 80px; padding-top: 18px; font-size: 15px; vertical-align:middle" ng-click="selectLoc()">
				<i class="icon ion-ios-location-outline" style="color: #aaa; font-size: 25px;"></i>
				<span ng-show="!loc">选择地址</span>
				<span ng-show="loc" style="font-size: 15px">{{loc.receivename}} {{loc.phone}} <br> {{loc.detail}}</span>
				<i class="icon ion-chevron-right" style="color: #aaa; font-size: 20px;"></i>
			</div>
			<!-- <div class="item">
        <span style="float: left">
          <img src="img/hd/ico_dd.png" style="width: 13px">
          订单号：4854545555
        </span>
      </div> -->
			<div class="divider"></div>
			<div class="item item-thumbnail-left" ng-repeat="goods in goodslist" style="min-height: 50px">
				<img src="img/hd/pic_dd.png" ng-if="!goods.smimgurl"/>
				<img ng-src="{{goods.smimgurl}}" ng-if="goods.smimgurl"/>
				<span style="float: left">
          <h3 style="margin-left: -30px">{{goods.name}}</h3>
          <p style="margin-left: -30px">编号：{{goods.barcode}}</p>
          <p style="margin-left: -30px">{{goods.scale}}</p>
        </span>
				<span style="float: right;text-align: right">
          <p>￥{{((goods.cx_price || goods.kj_price) * goods.num).toFixed(2)}}</p>
          <p>
            <i class="ion-close-round" style="font-size: 12px"></i>{{goods.num}}</p>
        </span>
				<div style="clear: both"></div>
			</div>
			<div class="item">
				<div style="float: left; color: #bebebe">
					支付类型
				</div>
				<div style="float: right">
					货到付款
				</div>
			</div>
			<div class="item">
				<div style="float: left; color: #bebebe">
					配送时间
				</div>
				<div style="float: right">
					立即配送
				</div>
			</div>
			<!-- <div class="item">
        <div style="float: left; color: #bebebe">
          用户名
        </div>
        <div style="float: right">
          请输入用户
        </div>
      </div>
      <div class="item">
        <div style="float: left; color: #bebebe">
          联系方式
        </div>
        <div style="float: right">
          请输入联系方式
        </div>
      </div> -->
			<label class="item item-input" style="vertical-align: top">
				<span style="color: #bebebe;padding-right: 20px;vertical-align: top">备注</span>
				<textarea placeholder="选填，可填写您希望的送货时间和其他特殊要求" id="note"></textarea>
				<!-- <input placeholder="选填，可填写您希望的送货时间和其他特殊要求" ng-model="note"> -->
			</label>
		</div>
		<div style="height: 50px"></div>
		</div>
	</ion-content>

	<div style="background-color: #fff; position: fixed; bottom: 0px;width: 100%">
		<div class="row no-padding">
			<div class="col">
				<span style="color: #bebebe">商品价格</span>
				<span class="main-color">￥{{count.toFixed(2)}}</span>
				<br>
				<span style="color: #bebebe;font-size: 12px; padding-left: 32px">运费</span>
				<span class="main-color">￥{{sendprice}}</span>
			</div>
			<div class="col col-50 col-offset-10 piece-btn" ng-click="addOrder()">
				确认下单
			</div>
		</div>
	</div>

</ion-view>
